package com.api.mc
{
	import com.game.btnClass.AddMouseEvent;
	import com.game.display.AutoGCMovieClip;
	import com.game.utils.GlobalFun;
	
	import flash.display.DisplayObject;
	
	public class BasicMc extends AutoGCMovieClip
	{
		protected var _mouseEventList:Vector.<AddMouseEvent>=new Vector.<AddMouseEvent>();
		public function BasicMc()
		{
		}
		protected function addMouseEvent(mouseEvent:AddMouseEvent):void{
			_mouseEventList.push(mouseEvent);
		}
		protected function delMouseEvent():void{
			if(_mouseEventList==null){
				return;
			}
			for(var i:uint=0;i<_mouseEventList.length;i++){
				_mouseEventList[i].delMouseEvent();
			
			}
			_mouseEventList=null;
		}
		protected function delThisAllDis():void{
			GlobalFun.removeAllDisObj(this);
		}
		
	}
}